package cn.wei.sdd.core.controller.wx;


import cn.wei.common.result.R;

import cn.wei.sdd.core.pojo.vo.SelectDataVO;
import cn.wei.sdd.core.service.DictService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 数据字典 前端控制器
 * </p>
 *
 * @author Wei
 * @since 2021-09-22
 */

@RestController
@Api(tags = "回收数据字典管理")
@RequestMapping(value = "/wxApi/core/dict")
public class DictController {

    @Autowired
    private DictService dictService;

    @ApiOperation("获取数据字典前端选择器联动数据")
    @GetMapping("getSelectData")
    public R getSelectData(){
        SelectDataVO serviceDict = dictService.getSelectData();
        return R.ok().data("data",serviceDict);
    }

}

